﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace OcelotWebapi02.Controllers
{
    [ApiController]
    [Route("[controller]/Post/[action]")]
    public class ApiController : ControllerBase
    {
        private static readonly string[] Summaries = new[]
        {
            "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
        };

        private readonly ILogger<ApiController> _logger;

        public ApiController(ILogger<ApiController> logger)
        {
            _logger = logger;
        }
        
        [HttpGet]
        public ActionResult<string> Get01()
        {
            var rng = new Random();
            return $"CNMGET011111";
        }
        [HttpGet]
        public ActionResult<string> Get03()
        {
            var rng = new Random();
            return $"API Get03 result";
        }
        [HttpGet]
        public ActionResult<string> Get04()
        {
            var rng = new Random();
            return $"API Get04 result";
        }
    }
    public class Get02Dto
    {
        public string name { get; set; }
        public int age { get; set; }
    }
}
